package com.travelgroup.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travelgroup.domain.dto.ScheduleDTO;
import com.travelgroup.domain.entity.Schedule;
import com.travelgroup.domain.vo.ItineraryVO;
import com.travelgroup.domain.vo.ScheduleVO;
import com.travelgroup.exception.R;

import java.util.List;

public interface IScheduleService extends IService<Schedule> {
    List<Schedule> getSchedulesByRedis(Long itineraryId);

    void saveSchedules(List<ScheduleDTO> schedules);

    void queryItinerarySummery(Long id, ItineraryVO itineraryVO);

    void deleteSchedule(Long itineraryId);

    R<ScheduleDTO> updateSchedule(Long id, ScheduleDTO schedule);

    R<List<ScheduleVO>> queryScheduleByIds(Long id);

    R<?> deleteScheduleById(Long itineraryId, Long id);
}
